package com.cn.kehong.domain;

import com.cn.kehong.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class ProductPackageVo {
    private String id;

    private String peiId;

    private String materialId;

    private String materialCode;

    private String productCode;

    private String materialName;

    private String gradeValue;

    private String factoryName;

    private String packageRoom;

    private String wuXin;

    private String packageStatus;

    private String jizuNum;

    private String baoProductCode;

    private String theoryNum;

    private String completeNum;

    private String uncompleteNum;

    private String packageStartTime;

    private String packageEndTime;

    private String status;

    private Date createTime;

    private Date updateTime;

    private String banCi;

    private String productName;

    private String totalTime;

    private String batchOutput;

    private int sumProduction;
    private int sumIdentification;
    private int sumBatchOutput;
    private int sumPackaging;
    private int count;

    private String productPackageId;

    private String batchPachageCode;

    private String baoMachineCode;

    private String packageWeight;

    private String adjust;

    private String luTemp;

    private String fengkou;

    private String packageTime;

    private String packageUserName;

    private String pinkongUserName;

    private String checkCode;

    private String labelType;

    private String lockPackage;

    private String jobStatus;
    private String packageJobId;

    private String jobIndex;
    private String remake;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "进行中", "1", "已完成");

    public static final transient Map<String,String> DEVICESTAT = ImmutableMap.of("0","否","1","是");
    public String getAdjustCn() {
        return DEVICESTAT.get(getAdjust());
    }

    public static final transient Map<String,String> DEVICESTAT1 = ImmutableMap.of("0","不合格","1","合格");
    public String getFengkouCn() {
        return DEVICESTAT1.get(getFengkou());
    }

    public static final transient Map<String,String> DEVICESTAT2 = ImmutableMap.of("0","未完成","1","已完成");
    public String getJobStatusCn() {
        return DEVICESTAT2.get(getJobStatus());
    }

    public static final transient Map<String,String> DEVICESTAT3 = ImmutableMap.of("0","否","1","1是");
    public String getLockPackageCn() {
        return DEVICESTAT3.get(getLockPackage());
    }
    public String getPackageStatusCn() {
        return STATUSMAP.get(getPackageStatus());
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getPeiId() {
        return peiId;
    }

    public void setPeiId(String peiId) {
        this.peiId = peiId == null ? null : peiId.trim();
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId == null ? null : materialId.trim();
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode == null ? null : materialCode.trim();
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName == null ? null : materialName.trim();
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue == null ? null : gradeValue.trim();
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getPackageRoom() {
        return packageRoom;
    }

    public void setPackageRoom(String packageRoom) {
        this.packageRoom = packageRoom == null ? null : packageRoom.trim();
    }

    public String getWuXin() {
        return wuXin;
    }

    public void setWuXin(String wuXin) {
        this.wuXin = wuXin == null ? null : wuXin.trim();
    }

    public String getPackageStatus() {
        return packageStatus;
    }

    public void setPackageStatus(String packageStatus) {
        this.packageStatus = packageStatus == null ? null : packageStatus.trim();
    }

    public String getJizuNum() {
        return jizuNum;
    }

    public void setJizuNum(String jizuNum) {
        this.jizuNum = jizuNum == null ? null : jizuNum.trim();
    }

    public String getBaoProductCode() {
        return baoProductCode;
    }

    public void setBaoProductCode(String baoProductCode) {
        this.baoProductCode = baoProductCode == null ? null : baoProductCode.trim();
    }

    public String getTheoryNum() {
        return theoryNum;
    }

    public void setTheoryNum(String theoryNum) {
        this.theoryNum = theoryNum == null ? null : theoryNum.trim();
    }

    public String getCompleteNum() {
        return completeNum;
    }

    public void setCompleteNum(String completeNum) {
        this.completeNum = completeNum == null ? null : completeNum.trim();
    }

    public String getUncompleteNum() {
        return uncompleteNum;
    }

    public void setUncompleteNum(String uncompleteNum) {
        this.uncompleteNum = uncompleteNum == null ? null : uncompleteNum.trim();
    }

    public String getPackageStartTime() {
        return packageStartTime;
    }

    public void setPackageStartTime(String packageStartTime) {
        this.packageStartTime = packageStartTime == null ? null : packageStartTime.trim();
    }

    public String getPackageEndTime() {
        return packageEndTime;
    }

    public void setPackageEndTime(String packageEndTime) {
        this.packageEndTime = packageEndTime == null ? null : packageEndTime.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getBanCi() {
        return banCi;
    }

    public void setBanCi(String banCi) {
        this.banCi = banCi == null ? null : banCi.trim();
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(String totalTime) {
        this.totalTime = totalTime;
    }

    public String getBatchOutput() {
        return batchOutput;
    }

    public void setBatchOutput(String batchOutput) {
        this.batchOutput = batchOutput;
    }

    public int getSumProduction() {
        return sumProduction;
    }

    public void setSumProduction(int sumProduction) {
        this.sumProduction = sumProduction;
    }

    public int getSumIdentification() {
        return sumIdentification;
    }

    public void setSumIdentification(int sumIdentification) {
        this.sumIdentification = sumIdentification;
    }

    public int getSumBatchOutput() {
        return sumBatchOutput;
    }

    public void setSumBatchOutput(int sumBatchOutput) {
        this.sumBatchOutput = sumBatchOutput;
    }

    public int getSumPackaging() {
        return sumPackaging;
    }

    public void setSumPackaging(int sumPackaging) {
        this.sumPackaging = sumPackaging;
    }

    public String getProductPackageId() {
        return productPackageId;
    }

    public void setProductPackageId(String productPackageId) {
        this.productPackageId = productPackageId;
    }

    public String getBatchPachageCode() {
        return batchPachageCode;
    }

    public void setBatchPachageCode(String batchPachageCode) {
        this.batchPachageCode = batchPachageCode;
    }

    public String getBaoMachineCode() {
        return baoMachineCode;
    }

    public void setBaoMachineCode(String baoMachineCode) {
        this.baoMachineCode = baoMachineCode;
    }

    public String getPackageWeight() {
        return packageWeight;
    }

    public void setPackageWeight(String packageWeight) {
        this.packageWeight = packageWeight;
    }

    public String getAdjust() {
        return adjust;
    }

    public void setAdjust(String adjust) {
        this.adjust = adjust;
    }

    public String getLuTemp() {
        return luTemp;
    }

    public void setLuTemp(String luTemp) {
        this.luTemp = luTemp;
    }

    public String getFengkou() {
        return fengkou;
    }

    public void setFengkou(String fengkou) {
        this.fengkou = fengkou;
    }

    public String getPackageTime() {
        return packageTime;
    }

    public void setPackageTime(String packageTime) {
        this.packageTime = packageTime;
    }

    public String getPackageUserName() {
        return packageUserName;
    }

    public void setPackageUserName(String packageUserName) {
        this.packageUserName = packageUserName;
    }

    public String getPinkongUserName() {
        return pinkongUserName;
    }

    public void setPinkongUserName(String pinkongUserName) {
        this.pinkongUserName = pinkongUserName;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getLabelType() {
        return labelType;
    }

    public void setLabelType(String labelType) {
        this.labelType = labelType;
    }

    public String getLockPackage() {
        return lockPackage;
    }

    public void setLockPackage(String lockPackage) {
        this.lockPackage = lockPackage;
    }

    public String getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(String jobStatus) {
        this.jobStatus = jobStatus;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getPackageJobId() {
        return packageJobId;
    }

    public void setPackageJobId(String packageJobId) {
        this.packageJobId = packageJobId;
    }

    public String getJobIndex() {
        return jobIndex;
    }

    public void setJobIndex(String jobIndex) {
        this.jobIndex = jobIndex;
    }

    public String getRemake() {
        return remake;
    }

    public void setRemake(String remake) {
        this.remake = remake;
    }
}